package com.wjerp.tplus.server;

import com.alibaba.fastjson.JSON;
import com.wjerp.tplus.server.common.model.WxApiResponseData;
import com.wjerp.tplus.server.common.utils.RSAUtils;
import com.wjerp.tplus.server.common.utils.SpringContextUtil;
import com.wjerp.tplus.server.common.utils.WxApiUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author lishuailei
 */
@EnableTransactionManagement
@MapperScan("com.wjerp.tplus.server.domain.mapper")
@SpringBootApplication
public class TplusServerApplication {

	public static void main( String[] args ) throws Exception {
		ApplicationContext applicationContext = SpringApplication.run(TplusServerApplication.class, args);
		SpringContextUtil.setApplicationContext(applicationContext);
		System.out.println("============= SpringBoot web Start Success=============");
		RSAUtils.generateKeyPair();


	}
}
